﻿/* Author:
 *  Andrea Vandin
 */
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using TripLOAMobile.WS_SoapTrip;

namespace TripLOAMobile
{
    /// <summary>
    /// This class show a list of searched travel
    /// </summary>
    public partial class ShowFavorites : TripLOAMobile.ShowListMinimalTravel
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ShowFavorites"/> class.
        /// </summary>
        public ShowFavorites(): base()
        {
            this.startAnimation();
            InitializeComponent();
            UpdateResources();
            Welcome.rrp.GetAllMyFavoritesTravel(this, rrp_NextResponse, 0);
        }

        /// <summary>
        /// Method for requesting a list of successive results. The request is asynchronuos.
        /// </summary>
        protected override void GetNextTravels()
        {
            Welcome.rrp.GetAllMyFavoritesTravel(this, rrp_NextResponse, this.listViewTravel.ActualNumberPage);
        }

        /// <summary>
        /// Method that determines if this particular class contains travels bookable
        /// </summary>
        /// <returns></returns>
        protected override bool travelsAreBookable()
        {
            return true;
        }
    }
}

